package com.csvc.business.cmdb.service;

import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csvc.commons.dto.WFMessageDto;
import com.csvc.repository.cmdb.domain.CmSynOrder;

/**
* <p>
    *  服务类
    * </p>
*
* @author vincent zou
* @since 2021-01-10
*/
    public interface ICmSynOrderService extends IService<CmSynOrder> {
    /**
    * 新增
    * @param cmSynOrder {@link CmSynOrder}
    * @return {@code boolean}
    */
    boolean create(CmSynOrder cmSynOrder);

    /**
    * 删除
    * @param id {@code Long}
    * @return {@code boolean}
    */
    boolean remove(Long id);

    /**
    * 编辑
    * @param cmSynOrder {@link CmSynOrder}
    * @return {@code boolean}
    */
    boolean update(CmSynOrder cmSynOrder);

    /**
    * 获取
    * @param id {@code Long}
    * @return {@link CmSynOrder}
    */
    CmSynOrder get(Long id);
    
    boolean putNotificationList(String contactway, String busiNo);

    /**
    * 分页
    * @param current {@code int} 页码
    * @param size {@code int} 笔数
    * @param cmSynOrder {@link CmSynOrder}
    * @return {@code IPage<CmSynOrder>}
    */
    IPage<CmSynOrder> page(int current, int size, CmSynOrder cmSynOrder);

	CmSynOrder checkInclusiveConditions(String busiNo);

	boolean archiveOrder(WFMessageDto msg);

	Map<String, Object> geneScripts(String busiNo);

	Map<String, Object> getDataInfo(String busiNo);
    }
